import PureTeamConfig from '../components/team-config';
import { getFetchStatus } from 'actions/util';
import * as DevTeamAction from 'actions/dev-team';
import * as ReactRedux from 'react-redux';

const mapStateToProps = (state) => {
  return {
    fetching: getFetchStatus(state, DevTeamAction.update)
  };
};

const mapDispatchToProps = (dispatch) => {
  return {
    onUpdate: (devTeam) => {
      return dispatch(DevTeamAction.update(devTeam));
    }
  };
};

export default ReactRedux.connect(mapStateToProps, mapDispatchToProps)(PureTeamConfig);
